import prisma from "./db/prisma";
import JDJob from "./jd/jd";
import Slide from "./taobao/slide";
import TMAILL from "./taobao/taobao";
import { logger } from "./utils/Logger";

async function main() {

    // const jd_site = new JDJob("");



    const taobao = new TMAILL("");
    const task = await prisma.task.findFirst({});
    const key_words = "4060";
    if(task){
       await taobao.scrapeTMAILL(task,key_words);
    }


    // const slide = new Slide("");
    // await slide.run();
    logger.info("End of main!");
}
main();
